package com.hopu.oa.dao.management;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hopu.oa.entity.management.AoaAttendsList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
@Mapper

public interface AoaAttendsListDao extends BaseMapper<AoaAttendsList> {

    /**
     * 分页操作和页面操作
     */
    List<AoaAttendsList> selectAll(@Param("userId") Integer userId, String find, @Param("index") Integer index, @Param("size") Integer size);


    /**
     * 模糊搜索当天的签到次数
     */
    List<AoaAttendsList> selectByUserIDAndTime(String time, Integer id);


}